#!/bin/sh

source echo_type.sh

if [ -e "$G_SENSOR_INFO_PATH/sensor_2232h" ];then
    SENSOR_NAME="sensor_sc2232h"
    SENSOR_CONF="/etc/jffs2/isp_sc2232h_mipi_2lane_ev300l.conf"
elif [ -e "$G_SENSOR_INFO_PATH/sensor_sc2336" ];then
    SENSOR_NAME="sensor_sc2336"
    SENSOR_CONF="/etc/jffs2/isp_sc2336_mipi_2lane_ev300l.conf"
elif [ -e "$G_SENSOR_INFO_PATH/sensor_223a" ];then
    SENSOR_NAME="sensor_sc223a"
    SENSOR_CONF="/etc/jffs2/isp_sc223a_mipi_2lane_ev300l.conf"
elif [ -e "$G_SENSOR_INFO_PATH/sensor_h62" ];then
    SENSOR_NAME="sensor_h62_mipi"
    SENSOR_CONF="/etc/jffs2/isp_h62_mipi_1lane_ev300l.conf"
elif [ -e "$G_SENSOR_INFO_PATH/sensor_mis2008" ];then
    SENSOR_NAME="sensor_mis2008"
    SENSOR_CONF="/etc/jffs2/isp_mis2008_ev300l.conf"
elif [ -e "$G_SENSOR_INFO_PATH/sensor_mis2006" ];then
    SENSOR_NAME="sensor_mis2006"
    SENSOR_CONF="/etc/jffs2/isp_mis2006_mipi_2lane_ev300l.conf"
elif [ -e "$G_SENSOR_INFO_PATH/sensor_f37" ];then
    SENSOR_NAME="sensor_f22_f23_f28_f35_f37"
    SENSOR_CONF="/etc/jffs2/isp_f37_mipi_1lane_ev300l.conf"
elif [ -e "$G_SENSOR_INFO_PATH/sensor_gc2053" ];then
    SENSOR_NAME="sensor_gc2053"
    SENSOR_CONF="/etc/jffs2/isp_gc2053_mipi_2lane_ev300l.conf"
elif [ -e "$G_SENSOR_INFO_PATH/sensor_h63" ];then
    SENSOR_NAME="sensor_h63"
    SENSOR_CONF="/etc/jffs2/isp_h63_mipi_1lane_ev300l.conf"
elif [ -e "$G_SENSOR_INFO_PATH/sensor_sc3332" ];then
    SENSOR_NAME="sensor_sc3332"
    SENSOR_CONF="/etc/jffs2/isp_sc3332_mipi_2lane_ev300l.conf"
elif [ -e "$G_SENSOR_INFO_PATH/sensor_gc2083" ];then
    SENSOR_NAME="sensor_gc2083"
    SENSOR_CONF="/etc/jffs2/isp_gc2083_mipi_2lane_ev300l.conf"
elif [ -e "$G_SENSOR_INFO_PATH/sensor_sc1346" ];then
    SENSOR_NAME="sensor_sc1346"
    SENSOR_CONF="/etc/jffs2/isp_sc1346_mipi_1lane_ev300l.conf"
elif [ -e "$G_SENSOR_INFO_PATH/sensor_sc3336" ];then
    SENSOR_NAME="sensor_sc3336"
    SENSOR_CONF="/etc/jffs2/isp_sc3336_mipi_ev300l.conf"
else
    sh_func_echo_err "no sensor"
    SENSOR_NAME="no_sensor"
fi

export G_SENSOR_NAME="$SENSOR_NAME"
export G_SENSOR_CONF="$SENSOR_CONF"

